package com.jsh.erp.remote;

import com.jsh.erp.service.supplier.SupplierService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.math.BigDecimal;

@RestController
@RequestMapping("/remote/api/supplier")
public class SupplierApi {

    @Resource
    private SupplierService supplierService;

    @GetMapping("/updateAdvanceIn")
    public int updateAdvanceIn(@RequestParam("/supplierId") Long supplierId, @RequestParam("/advanceIn") BigDecimal advanceIn)throws Exception{
        return supplierService.updateAdvanceIn(supplierId, advanceIn);
    }

    }
